<template>
  <ElInput v-model="value" :placeholder="`请输入${column.label}`" />
</template>
<script setup lang="ts">
  import { ElInput } from 'element-plus';
  import { ref, watch, watchEffect } from 'vue';  
  import { Column } from '@/seed-application/types';

  const props = defineProps<{column: Column, modelValue: any}>()
  const column = props.column
  const emits = defineEmits(['update:modelValue'])

  const value = ref<string>(props.modelValue)

  watchEffect(() => emits('update:modelValue', value.value))
  watch(() => props.modelValue, (val) => value.value = val)
</script>